<form action="{{$url}}" method="post" style="display:inline;">
    @csrf
    @if(isset($method))
        @method($method)
    @endif
<div id="{{$id}}" tabindex="-1" role="dialog" class="modal fade colored-header colored-header-primary show">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header modal-header-colored">
                <h3 class="modal-title">{{$title}}</h3>
                <button type="button" data-dismiss="modal" aria-hidden="true" class="close"><span class="mdi mdi-close"></span></button>
            </div>
            <div class="modal-body">
                {{$slot}}
            </div>
            <div class="modal-footer">
                <button type="submit"  class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>
</form>